@import '@/style/variables.scss';

html {
  height: 100%;
}

body {
  height: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  // padding-bottom: constant(safe-area-inset-bottom); //安全区域适配
}
iframe {
  display: none;
}

#app {
  font-size: 14px;
  color: $color-text-primary;
}

ul,
ol {
  list-style: none;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.block {
  display: block;
}

.no-padding {
  padding: 0px !important;
}

.relative {
  position: relative;
}

.flex {
  display: flex;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: ' ';
    clear: both;
    height: 0;
  }
}

.flex-row-vertical {
  display: flex;
  display: -webkit-flex;
  align-items: center;
  -webkit-align-items: center;
}

.flex-space-between-vertical {
  display: flex;
  display: -webkit-flex;
  align-items: center;
  -webkit-align-items: center;
  justify-content: space-between;
  -webkit-justify-content: space-between;
}

// 修改vant Button样式
body .van-button {
  border-radius: 4px;
}

body .button,
body .van-button--primary {
  background: linear-gradient(125deg, #74cdff 0%, #409eff 100%);
  border: 0;
  border-radius: 4px;
}

:root {
  --van-gray-7: #575c72;
  --van-gray-8: #101736;
  --van-gray-6: #9fa2af;
}

// 修改toast提示样式
.van-toast {
  // background-color: rgba($color: #909399, $alpha: 1);
  padding: 10px;

  .van-toast__icon {
    font-size: 30px;
  }
  .van-icon__image {
    width: auto;
    height: auto;
  }
}
.toast_success {
  width: 150px;
  height: 110px;
  // background: #000000;
  border-radius: 8px;
  // opacity: 0.6;
}
//修改Dialog样式
.van-dialog__confirm,
.van-dialog__confirm:active {
  color: $color-primary;
}
